import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;


public class ArrayTest extends JFrame {
  // Anfang Attribute
    CleverArray myArray = new CleverArray();
    private DrawPanel myDrawPanel = new DrawPanel(null, true, myArray);
    // Ende Attribute
    
    public ArrayTest(String title) { 
        // Frame-Initialisierung
        super(title);
        setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
        int frameWidth = 300; 
        int frameHeight = 300;
        setSize(frameWidth, frameHeight);
        Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
        int x = (d.width - getSize().width) / 2;
        int y = (d.height - getSize().height) / 2;
        setLocation(x, y);
        setResizable(false);
        Container cp = getContentPane();
        cp.setLayout(null);
        // Anfang Komponenten
        
        myDrawPanel.setBounds(104, 64, 100, 100);
        myDrawPanel.setOpaque(false);
        myDrawPanel.setBorder(new javax.swing.border.LineBorder(Color.BLACK, 0));
        cp.add(myDrawPanel);
        // Ende Komponenten
        
        setVisible(true);
    } // end of public ArrayTest
    
    // Anfang Methoden
    // Ende Methoden
    
    public static void main(String[] args) {
        new ArrayTest("ArrayTest");
    } // end of main
    
} // end of class ArrayTest
